<template>
	<div class="admin">
		<div class="tabbox">
			<Bluetable :tHead="tHead" :tData="tableData" @operateClick="operateClick"></Bluetable>
			<pagination :total="query.total" :page.sync="query.page" :limit.sync="query.limit" @pagination="getList" />
		</div>
		<LookView ref='LookView' :openTitle="openTitle"></LookView>
	</div>
</template>

<script>
	import LookView from "./components/lookView";
	export default {
		components: {
			LookView
		},
		name: "Viewsync",
		data() {
			return {
				query: {
					total: 0,
					page: 1,
					limit: 10
				},
				tHead: [{
						label: "序号",
						index: true
					},
					{
						prop: "aa",
						label: "视图名称"
					},
					{
						prop: "aa",
						label: "连接类型ID"
					},
					{
						prop: "aa",
						label: "是否同步"
					},
					{
						prop: "aa",
						label: "最后同步时间"
					},
					{
						prop: "aa",
						label: "是否成功"
					},
					{
						prop: "aa",
						label: "同步数量"
					},
					{
						prop: "aa",
						label: "同步成功数量"
					},
					{
						prop: "aa",
						label: "数据库版本"
					},
					{
						prop: "aa",
						label: "一天/逐天导(可编辑)"
					},
					{
						prop: "aa",
						label: "同步成功时间"
					},
					{
						label: "操作",
						operate: ["查看明细"]
					}
				],
				tableData: [{
					aa: "aa"
				}],
				openTitle: ""
			}
		},
		methods: {
			getList() {

			},
			operateClick(item, row) {
				if (item == "查看明细") {
					this.openTitle = row.aa + '视图同步结果明细';
					this.$refs.LookView.show();
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.admin {
		padding: 18px;

		.addbox {
			text-align: right;
		}

		.tabbox {
			margin-top: 18px;
		}
	}
</style>
